package com.lyh.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lyh.common.annotation.Excel;
import com.lyh.common.core.domain.BaseEntity;

/**
 * 收益对象 lyh_income
 * 
 * @author ruoyi
 * @date 2023-04-28
 */
@Data
@TableName("lyh_income")
public class Income extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 收益类别 */
    @Excel(name = "收益类别")
    private String type;

    /** 收益 */
    @Excel(name = "收益")
    private BigDecimal incomeNum;

    /** 收益时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收益时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date incomeDate;
}
